package com.nateshao.service;

import com.nateshao.dao.StudentDao;
import com.nateshao.domain.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author TongJie Shao
 * Created by @Author  on 2020/7/11 23:46
 */
@Service
public class StudentService {

    @Autowired
    private StudentDao studentDao;

    public Student getStudentById(int id){
        return studentDao.getStudentById(id);
    }
}
